package exo1_1;

public class CompteAvecLimite {

	
	private final double plafond;
	private double solde;
	private String nom;
	private double numero;



	public CompteAvecLimite(double plafond, double solde, String nom,
			double numero) {
		super();
		this.plafond = 1000;
		this.solde = solde;
		this.nom = nom;
		this.numero = numero;
	}


	

	public double getSolde() {
		return solde;
	}




	public void setSolde(double solde) {
		this.solde = solde;
	}




	public String getNom() {
		return nom;
	}




	public void setNom(String nom) {
		this.nom = nom;
	}




	public double getNumero() {
		return numero;
	}




	public void setNumero(double numero) {
		this.numero = numero;
	}




	public double getPlafond() {
		return plafond;
	}


	@Override
	public String toString() {
		return "CompteAvecLimite [plafond=" + plafond + ", solde=" + solde
				+ ", nom=" + nom + ", numero=" + numero + "]";
	}


	
}
